<?= $this->partial('data-grabber/menu.phtml'); ?>

<div class="content-full">

<h1>
    <?= $this->img("/images/icons/INV_Bijou_Gold.jpg") ?> Welcome to the Data Grabber 
</h1>

<p>
    If you don't know why you are here, you proberbly shouldn't be ...
</p>

<table class='shaded'>

<tr>
    <th>Id</th>
    <th>Name</th>
    <th>Created</th>
    <th>&nbsp;</th>
</tr>

<?php foreach($this->grabs as $grab) : ?>
<tr class="<?= $this->alternator(array("odd","even")); ?>">
    <td>    
        <?= $this->escape($grab->id); ?>
    </td>
    <td>    
        <?= $this->escape($grab->name); ?>
    </td>
    <td>    
        <?= $this->escape($grab->created); ?>
    </td>
    <td>
        <a href="<?= $this->url(array('controller'=>'data-grabber', 'action'=>'show', 'grab'=>$grab->id)) ?>">
        Show
        </a>
    </td>
</tr>
<?php endforeach; ?>

</table>

</div>